// localStorage.setItem(key, val)
// localStorage.getItem(key)
// localStorage.removeItem(key)

const KEY = 'my-h5-vant-token'

// 存
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken)
}
// 取 获取的时候一定要注意return  简写的时候，省略了return
export const getToken = () => {
  // return
  return localStorage.getItem(KEY)
}
// 删除
export const delToken = () => {
  localStorage.removeItem(KEY)
}
